import { TimeLabel } from './product';

export interface RateInfo {
  timeLabel: TimeLabel;
  rate: number;
  dateRange: string;
  interest: number;
}

export interface InvestmentDetail {
  id: string;
  periodDays: number;
  investmentRange: string;
  principal: number;
  interest: number;
}

export interface CalculationResult {
  productId: string;
  productName: string;
  bankName: string;
  rates: RateInfo[];
  investments: InvestmentDetail[];
  totalPrincipal: number;
  totalInterest: number;
}